
<!-- operation area -->
<a type="button" class="btn btn-cys btn-sm" ng-click="ctrl.build()">
	<span class="glyphicon glyphicon-import"></span>
	生成考勤数据
</a>

<a class="btn btn-cys btn-sm" ng-click="export(supCtrl,'root/export/course/queryAttendance')">导出</a>
<a class="btn btn-danger btn-sm" ng-click="supCtrl.changeCtrl('Q')">返回</a>
<div class="pull-right" ng-include="':root/components/page.html'"></div>
<!-- operation area END -->
<!-- data grid area -->
<div style="padding-top: 10px;">
	<table class="table table-bordered table-hover table-striped">
		<tr>
			<th>
				<input ng-change="ctrl.checkAll(ctrl.$checkAll)" ng-model="ctrl.$checkAll" type="checkbox" />
			</th>
			<th>学号</th>
			<th>姓名</th>
			<th>院系</th>
			<th>班级</th>
			<th>考勤状态</th>
		</tr>
		<tr ng-repeat="item in ctrl.entities.content">
			<td>
				<input ng-model="item.$checked" type="checkbox" />
			</td>
			<td>{{item.stuInfo.user.uid}}</td>
			<td>{{item.stuInfo.user.name}}</td>
			<td>{{$root.departmentMap[item.stuInfo.user.department].name}}</td>
			<td>{{item.stuInfo.classInfo.bjName}}</td>
			<td class="col-md-2">
				<select ng-change="ctrl.updateStatus(item)" chosen style="max-width: 85%" ng-model="item.status" class="form-control col-md-10" disable-search="true">
					<option ng-value="0">正常</option>
					<option ng-value="1">请假</option>
					<option ng-value="2">缺勤</option>
				</select>
				<span ng-show="item.updating" class="text-success glyphicon glyphicon-refresh glyphicon-refresh-animate"></span>
			</td>
		</tr>
	</table>
	<p>
		共有记录：
		<span>{{ctrl.entities.totalElements}}</span>
		条
	</p>
</div>
<div ng-non-bindable class="hidden" template-leave>
	<div detail>
		<form class="form-horizontal">
			<div class="form-group">
				<label class="col-md-2 control-label">姓名</label>
				<div class="col-md-4">
					<input type="text" ng-model="result.stuInfo.student.name" class="form-control" disabled="disabled">

				</div>
				<label class="col-md-2 control-label">性别</label>
				<div class="col-md-4">
					<input type="text" class="form-control" ng-model="result.stuInfo.student.sexString" disabled="disabled">
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label">学生类别</label>
				<div class="col-md-4">
					<input type="text" class="form-control" disabled="disabled" value="本科">
				</div>
				<label class="col-md-2 control-label">年级</label>
				<div class="col-md-4">
					<input type="text" class="form-control" ng-model="result.stuInfo.student.grade" disabled="disabled" value="2015">
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label">院系</label>
				<div class="col-md-4">
					<input type="text" class="form-control" disabled="disabled" ng-model="result.stuInfo.student.department.name">
				</div>
				<label class="col-md-2 control-label">专业</label>
				<div class="col-md-4">
					<input type="text" class="form-control" disabled="disabled" ng-model="result.stuInfo.student.major.name">
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label">校区</label>
				<div class="col-md-4">
					<input class="form-control" disabled="disabled" ng-model="result.stuInfo.xq">
				</div>
				<label class="col-md-2 control-label">联系电话</label>
				<div class="col-md-4">
					<input type="text" disabled="disabled" ng-model="result.stuInfo.lxfs" class="form-control">
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label">班级</label>
				<div class="col-md-4">
					<input class="form-control" disabled="disabled" ng-model="result.stuInfo.classInfo.bjName">
				</div>
				<label class="col-md-2 control-label">团支书</label>
				<div class="col-md-4">
					<span class="form-control" disabled="disabled" ng-bind="result.stuInfo.sfwtzs|toBool"></span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label">备注</label>
				<div class="col-md-10">
					<input type="text" disabled="disabled" class="form-control" ng-model="result.stuInfo.bz">
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label">请假原因</label>
				<div class="col-md-10">
					<textarea disabled="disabled" style="resize: none;" rows="3" cols="" type="text" placeholder="请假原因" class="form-control"
						ng-model="result.qjly"></textarea>
				</div>
			</div>
		</form>
	</div>
	<div audit>
		<form class="form-horizontal">
			<div class="form-group">
				<label class="col-md-2 control-label">请假原因</label>
				<div class="col-md-10">
					<textarea disabled="disabled" style="resize: none;" rows="3" cols="" type="text" placeholder="请假原因" class="form-control"
						ng-model="result.qjly"></textarea>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label">审批意见</label>
				<div class="col-md-10">
					<input switch-handle-width="80px" bs-switch type="checkbox" ng-model="result.pass" switch-size="small" switch-on-text="通过"
						switch-off-text="驳回" name="result.pass" />
				</div>
			</div>
		</form>
	</div>
</div>